package com.ruoyi.bussiness.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.bussiness.mapper.CcyTradeWaitingMapper;
import com.ruoyi.bussiness.domain.CcyTradeWaiting;
import com.ruoyi.bussiness.service.ICcyTradeWaitingService;

/**
 * 委托订单Service业务层处理
 * 
 * @author wzy
 * @date 2025-10-21
 */
@Service
public class CcyTradeWaitingServiceImpl implements ICcyTradeWaitingService 
{
    @Autowired
    private CcyTradeWaitingMapper ccyTradeWaitingMapper;

    /**
     * 查询委托订单
     * 
     * @param id 委托订单主键
     * @return 委托订单
     */
    @Override
    public CcyTradeWaiting selectCcyTradeWaitingById(String id)
    {
        return ccyTradeWaitingMapper.selectCcyTradeWaitingById(id);
    }

    /**
     * 查询委托订单列表
     * 
     * @param ccyTradeWaiting 委托订单
     * @return 委托订单
     */
    @Override
    public List<CcyTradeWaiting> selectCcyTradeWaitingList(CcyTradeWaiting ccyTradeWaiting)
    {
        return ccyTradeWaitingMapper.selectCcyTradeWaitingList(ccyTradeWaiting);
    }

    /**
     * 新增委托订单
     * 
     * @param ccyTradeWaiting 委托订单
     * @return 结果
     */
    @Override
    public int insertCcyTradeWaiting(CcyTradeWaiting ccyTradeWaiting)
    {
        return ccyTradeWaitingMapper.insertCcyTradeWaiting(ccyTradeWaiting);
    }

    /**
     * 修改委托订单
     * 
     * @param ccyTradeWaiting 委托订单
     * @return 结果
     */
    @Override
    public int updateCcyTradeWaiting(CcyTradeWaiting ccyTradeWaiting)
    {
        return ccyTradeWaitingMapper.updateCcyTradeWaiting(ccyTradeWaiting);
    }

    /**
     * 批量删除委托订单
     * 
     * @param ids 需要删除的委托订单主键
     * @return 结果
     */
    @Override
    public int deleteCcyTradeWaitingByIds(String[] ids)
    {
        return ccyTradeWaitingMapper.deleteCcyTradeWaitingByIds(ids);
    }

    /**
     * 删除委托订单信息
     * 
     * @param id 委托订单主键
     * @return 结果
     */
    @Override
    public int deleteCcyTradeWaitingById(String id)
    {
        return ccyTradeWaitingMapper.deleteCcyTradeWaitingById(id);
    }
}
